package com.xr.maintain.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * <p>
 * 机构审核记录表
 * </p>
 *
 * @author Gonna
 * @since 2021-05-07
 */
@TableName("tb_auditrecord")
@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Alias("auditrecord")
public class Auditrecord {
    /**
     * ID
     */
    @TableId(value = "id",type = IdType.INPUT)
    private Long id;
    /**
     * 机构ID
     */
    @TableField("company_id")
    private Long companyId;
    /**
     * 机构名称
     */
    @TableField("company_name")
    private String companyName;
    /**
     * 审核状态
     *  2 = 驳回
     *  3 = 通过
     *  4 = 取消
     */
    @TableField("audit_result")
    private Integer auditResult;
    /**
     * 审核意见
     */
    @TableField("audit_opinion")
    private String auditOpinion;
    /**
     * 审核时间
     */
    @TableField("audit_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date auditDate;
    /**
     * 默认状态
     */
    @TableField("state")
    private Integer state;
}
